import {request} from "../../request";

export function getTradeById(id){
    return request({
        url:`/lswms/trade/${id}`,
        method:'get'
    })
}


export function getTradeList(data){
    return request({
        url:'/lswms/trade/page',
        method:'put',
        data:data
    })
}

export function putTrade(data){
    return request({
        url:'/lswms/trade',
        method:'put',
        data:data
    })
}
export function postTrade(data){
    return request({
        url:'/lswms/trade',
        method:'post',
        data:data
    })
}

export function deleteTrade(data){
    return request({
        url:`/lswms/trade`,
        method:'delete',
        data:data
    })
}
export function exportTrade(data){
    return request({
        url:`/lswms/trade/export`,
        method:'get',
        data:data,
        responseType:'blob'
    })
}
